<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Priithon.fileDropPopup</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Priithon-module.html">Package&nbsp;Priithon</a> ::
        Module&nbsp;fileDropPopup
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Priithon.fileDropPopup-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="Priithon.fileDropPopup-module.html">Module Priithon.fileDropPopup</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring">Priithon pyshell / view / view2 support file drag-and-drop</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">    -&gt; a popup menu presents a choice of what to do</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">__future__</tt> <tt class="py-keyword">import</tt> <tt class="py-name">absolute_import</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-name">__author__</tt>  <tt class="py-op">=</tt> <tt class="py-string">"Sebastian Haase &lt;seb.haase+Priithon@gmail.com&gt;"</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable Priithon.PriShell.__license__=Priithon.PriShell-module.html#__license__,Variable Priithon.__license__=Priithon-module.html#__license__"><a title="Priithon.PriShell.__license__
Priithon.__license__" class="py-name" href="#" onclick="return doclink('link-0', '__license__', 'link-0');">__license__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"BSD license - see LICENSE file"</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">wx</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt id="link-1" class="py-name" targets="Variable Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT=Priithon.fileDropPopup-module.html#NO_SPECIAL_GUI_EXCEPT,Variable Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT=Priithon.py.shell-module.html#NO_SPECIAL_GUI_EXCEPT"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-1', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt> <tt class="py-op">=</tt> <tt id="link-2" class="py-name" targets="Variable Priithon.wxPyPlot.True=Priithon.wxPyPlot-module.html#True"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-2', 'True', 'link-2');">True</a></tt> <tt class="py-comment"># instead rely on Priithon's guiExceptionFrame (Y._fixGuiExceptHook())</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_paste=Priithon.fileDropPopup-module.html#Menu_paste"><a title="Priithon.fileDropPopup.Menu_paste" class="py-name" href="#" onclick="return doclink('link-3', 'Menu_paste', 'link-3');">Menu_paste</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt id="link-4" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_view=Priithon.fileDropPopup-module.html#Menu_view"><a title="Priithon.fileDropPopup.Menu_view" class="py-name" href="#" onclick="return doclink('link-4', 'Menu_view', 'link-4');">Menu_view</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_view2=Priithon.fileDropPopup-module.html#Menu_view2"><a title="Priithon.fileDropPopup.Menu_view2" class="py-name" href="#" onclick="return doclink('link-5', 'Menu_view2', 'link-5');">Menu_view2</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt id="link-6" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_assign=Priithon.fileDropPopup-module.html#Menu_assign"><a title="Priithon.fileDropPopup.Menu_assign" class="py-name" href="#" onclick="return doclink('link-6', 'Menu_assign', 'link-6');">Menu_assign</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt id="link-7" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_assignFN=Priithon.fileDropPopup-module.html#Menu_assignFN"><a title="Priithon.fileDropPopup.Menu_assignFN" class="py-name" href="#" onclick="return doclink('link-7', 'Menu_assignFN', 'link-7');">Menu_assignFN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt id="link-8" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_assignList=Priithon.fileDropPopup-module.html#Menu_assignList"><a title="Priithon.fileDropPopup.Menu_assignList" class="py-name" href="#" onclick="return doclink('link-8', 'Menu_assignList', 'link-8');">Menu_assignList</a></tt><tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt id="link-9" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_dir=Priithon.fileDropPopup-module.html#Menu_dir"><a title="Priithon.fileDropPopup.Menu_dir" class="py-name" href="#" onclick="return doclink('link-9', 'Menu_dir', 'link-9');">Menu_dir</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt id="link-10" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_cd=Priithon.fileDropPopup-module.html#Menu_cd"><a title="Priithon.fileDropPopup.Menu_cd" class="py-name" href="#" onclick="return doclink('link-10', 'Menu_cd', 'link-10');">Menu_cd</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt id="link-11" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_appSysPath=Priithon.fileDropPopup-module.html#Menu_appSysPath"><a title="Priithon.fileDropPopup.Menu_appSysPath" class="py-name" href="#" onclick="return doclink('link-11', 'Menu_appSysPath', 'link-11');">Menu_appSysPath</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt id="link-12" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_exec=Priithon.fileDropPopup-module.html#Menu_exec"><a title="Priithon.fileDropPopup.Menu_exec" class="py-name" href="#" onclick="return doclink('link-12', 'Menu_exec', 'link-12');">Menu_exec</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt id="link-13" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_import=Priithon.fileDropPopup-module.html#Menu_import"><a title="Priithon.fileDropPopup.Menu_import" class="py-name" href="#" onclick="return doclink('link-13', 'Menu_import', 'link-13');">Menu_import</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt id="link-14" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_importAs=Priithon.fileDropPopup-module.html#Menu_importAs"><a title="Priithon.fileDropPopup.Menu_importAs" class="py-name" href="#" onclick="return doclink('link-14', 'Menu_importAs', 'link-14');">Menu_importAs</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt id="link-15" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_editor=Priithon.fileDropPopup-module.html#Menu_editor"><a title="Priithon.fileDropPopup.Menu_editor" class="py-name" href="#" onclick="return doclink('link-15', 'Menu_editor', 'link-15');">Menu_editor</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt id="link-16" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_editor2=Priithon.fileDropPopup-module.html#Menu_editor2"><a title="Priithon.fileDropPopup.Menu_editor2" class="py-name" href="#" onclick="return doclink('link-16', 'Menu_editor2', 'link-16');">Menu_editor2</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt id="link-17" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_loadTxt2d=Priithon.fileDropPopup-module.html#Menu_loadTxt2d"><a title="Priithon.fileDropPopup.Menu_loadTxt2d" class="py-name" href="#" onclick="return doclink('link-17', 'Menu_loadTxt2d', 'link-17');">Menu_loadTxt2d</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt id="link-18" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_assignSeq=Priithon.fileDropPopup-module.html#Menu_assignSeq"><a title="Priithon.fileDropPopup.Menu_assignSeq" class="py-name" href="#" onclick="return doclink('link-18', 'Menu_assignSeq', 'link-18');">Menu_assignSeq</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt id="link-19" class="py-name" targets="Variable Priithon.fileDropPopup.Menu_viewSeq=Priithon.fileDropPopup-module.html#Menu_viewSeq"><a title="Priithon.fileDropPopup.Menu_viewSeq" class="py-name" href="#" onclick="return doclink('link-19', 'Menu_viewSeq', 'link-19');">Menu_viewSeq</a></tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">NewId</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt class="py-comment">#seb : File drag and drop</tt> </tt>
<a name="FileDropTarget"></a><div id="FileDropTarget-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="FileDropTarget-toggle" onclick="return toggle('FileDropTarget');">-</a><tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">class</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html">FileDropTarget</a><tt class="py-op">(</tt><tt class="py-base-class">wx</tt><tt class="py-op">.</tt><tt class="py-base-class">FileDropTarget</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="FileDropTarget-expanded"><a name="FileDropTarget.__init__"></a><div id="FileDropTarget.__init__-def"><a name="L33"></a><tt class="py-lineno"> 33</tt> <a class="py-toggle" href="#" id="FileDropTarget.__init__-toggle" onclick="return toggle('FileDropTarget.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">,</tt> <tt class="py-param">pyshell</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.__init__-expanded"><a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Class Priithon.fileDropPopup.FileDropTarget=Priithon.fileDropPopup.FileDropTarget-class.html"><a title="Priithon.fileDropPopup.FileDropTarget" class="py-name" href="#" onclick="return doclink('link-20', 'FileDropTarget', 'link-20');">FileDropTarget</a></tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Method Priithon.DragAndDrop.ClipTextPanel.__init__()=Priithon.DragAndDrop.ClipTextPanel-class.html#__init__,Method Priithon.DragAndDrop.FileDropPanel.__init__()=Priithon.DragAndDrop.FileDropPanel-class.html#__init__,Method Priithon.DragAndDrop.MyFileDropTarget.__init__()=Priithon.DragAndDrop.MyFileDropTarget-class.html#__init__,Method Priithon.Mrc.Mrc.__init__()=Priithon.Mrc.Mrc-class.html#__init__,Method Priithon.Mrc.Mrc2.__init__()=Priithon.Mrc.Mrc2-class.html#__init__,Method Priithon.Scientific_IO_TextFile.TextFile.__init__()=Priithon.Scientific_IO_TextFile.TextFile-class.html#__init__,Method Priithon.buttonbox._buttonBox.__init__()=Priithon.buttonbox._buttonBox-class.html#__init__,Method Priithon.fileDropPopup.FileDropTarget.__init__()=Priithon.fileDropPopup.FileDropTarget-class.html#__init__,Method Priithon.gridviewer.ArrayGrid.__init__()=Priithon.gridviewer.ArrayGrid-class.html#__init__,Method Priithon.gridviewer.HugeTable.__init__()=Priithon.gridviewer.HugeTable-class.html#__init__,Method Priithon.gridviewer.HugeTableGrid.__init__()=Priithon.gridviewer.HugeTableGrid-class.html#__init__,Method Priithon.guiExceptionFrame.MyFrame.__init__()=Priithon.guiExceptionFrame.MyFrame-class.html#__init__,Method Priithon.guiInfoFrame.HtmlInfoFrame.__init__()=Priithon.guiInfoFrame.HtmlInfoFrame-class.html#__init__,Method Priithon.guiInfoFrame.HtmlWindow.__init__()=Priithon.guiInfoFrame.HtmlWindow-class.html#__init__,Method Priithon.guiParams.guiParams.__init__()=Priithon.guiParams.guiParams-class.html#__init__,Method Priithon.histogram.HistogramCanvas.__init__()=Priithon.histogram.HistogramCanvas-class.html#__init__,Method Priithon.histogram.MyCanvasBase.__init__()=Priithon.histogram.MyCanvasBase-class.html#__init__,Method Priithon.mmviewer.GLViewer.__init__()=Priithon.mmviewer.GLViewer-class.html#__init__,Method Priithon.mockNDarray.mockNDarray.__init__()=Priithon.mockNDarray.mockNDarray-class.html#__init__,Method Priithon.ndarray_meta.nd_meta_attribute.__init__()=Priithon.ndarray_meta.nd_meta_attribute-class.html#__init__,Method Priithon.plt.dumb_shelve.DbfilenameShelf.__init__()=Priithon.plt.dumb_shelve.DbfilenameShelf-class.html#__init__,Method Priithon.plt.dumbdbm_patched._Database.__init__()=Priithon.plt.dumbdbm_patched._Database-class.html#__init__,Method Priithon.plt.plot_objects.axis_object.__init__()=Priithon.plt.plot_objects.axis_object-class.html#__init__,Method Priithon.plt.plot_objects.axis_window.__init__()=Priithon.plt.plot_objects.axis_window-class.html#__init__,Method Priithon.plt.plot_objects.border_object.__init__()=Priithon.plt.plot_objects.border_object-class.html#__init__,Method Priithon.plt.plot_objects.graphic_list.__init__()=Priithon.plt.plot_objects.graphic_list-class.html#__init__,Method Priithon.plt.plot_objects.image_object.__init__()=Priithon.plt.plot_objects.image_object-class.html#__init__,Method Priithon.plt.plot_objects.legend_object.__init__()=Priithon.plt.plot_objects.legend_object-class.html#__init__,Method Priithon.plt.plot_objects.line_object.__init__()=Priithon.plt.plot_objects.line_object-class.html#__init__,Method Priithon.plt.plot_objects.poly_line.__init__()=Priithon.plt.plot_objects.poly_line-class.html#__init__,Method Priithon.plt.plot_objects.poly_marker.__init__()=Priithon.plt.plot_objects.poly_marker-class.html#__init__,Method Priithon.plt.plot_objects.poly_points.__init__()=Priithon.plt.plot_objects.poly_points-class.html#__init__,Method Priithon.plt.plot_objects.text_object.__init__()=Priithon.plt.plot_objects.text_object-class.html#__init__,Method Priithon.plt.plot_objects.text_window.__init__()=Priithon.plt.plot_objects.text_window-class.html#__init__,Method Priithon.plt.plot_utility.box_object.__init__()=Priithon.plt.plot_utility.box_object-class.html#__init__,Method Priithon.plt.plot_utility.point_object.__init__()=Priithon.plt.plot_utility.point_object-class.html#__init__,Method Priithon.plt.plot_utility.property_object.__init__()=Priithon.plt.plot_utility.property_object-class.html#__init__,Method Priithon.plt.wxplt.graph_printout.__init__()=Priithon.plt.wxplt.graph_printout-class.html#__init__,Method Priithon.plt.wxplt.plot_canvas.__init__()=Priithon.plt.wxplt.plot_canvas-class.html#__init__,Method Priithon.plt.wxplt.plot_frame.__init__()=Priithon.plt.wxplt.plot_frame-class.html#__init__,Method Priithon.py.PyAlaCarte.App.__init__()=Priithon.py.PyAlaCarte.App-class.html#__init__,Method Priithon.py.PyAlaMode.App.__init__()=Priithon.py.PyAlaMode.App-class.html#__init__,Method Priithon.py.PyAlaModeTest.App.__init__()=Priithon.py.PyAlaModeTest.App-class.html#__init__,Method Priithon.py.buffer.Buffer.__init__()=Priithon.py.buffer.Buffer-class.html#__init__,Method Priithon.py.crust.Calltip.__init__()=Priithon.py.crust.Calltip-class.html#__init__,Method Priithon.py.crust.Crust.__init__()=Priithon.py.crust.Crust-class.html#__init__,Method Priithon.py.crust.CrustFrame.__init__()=Priithon.py.crust.CrustFrame-class.html#__init__,Method Priithon.py.crust.DispatcherListing.__init__()=Priithon.py.crust.DispatcherListing-class.html#__init__,Method Priithon.py.crust.Display.__init__()=Priithon.py.crust.Display-class.html#__init__,Method Priithon.py.crust.SessionListing.__init__()=Priithon.py.crust.SessionListing-class.html#__init__,Method Priithon.py.dispatcher.BoundMethodWeakref.__init__()=Priithon.py.dispatcher.BoundMethodWeakref-class.html#__init__,Method Priithon.py.dispatcher.DispatcherError.__init__()=Priithon.py.dispatcher.DispatcherError-class.html#__init__,Method Priithon.py.document.Document.__init__()=Priithon.py.document.Document-class.html#__init__,Method Priithon.py.editor.DialogResults.__init__()=Priithon.py.editor.DialogResults-class.html#__init__,Method Priithon.py.editor.EditWindow.__init__()=Priithon.py.editor.EditWindow-class.html#__init__,Method Priithon.py.editor.Editor.__init__()=Priithon.py.editor.Editor-class.html#__init__,Method Priithon.py.editor.EditorFrame.__init__()=Priithon.py.editor.EditorFrame-class.html#__init__,Method Priithon.py.editor.EditorNotebook.__init__()=Priithon.py.editor.EditorNotebook-class.html#__init__,Method Priithon.py.editor.EditorNotebookFrame.__init__()=Priithon.py.editor.EditorNotebookFrame-class.html#__init__,Method Priithon.py.editor.EditorShellNotebook.__init__()=Priithon.py.editor.EditorShellNotebook-class.html#__init__,Method Priithon.py.editor.EditorShellNotebookFrame.__init__()=Priithon.py.editor.EditorShellNotebookFrame-class.html#__init__,Method Priithon.py.editwindow.EditWindow.__init__()=Priithon.py.editwindow.EditWindow-class.html#__init__,Method Priithon.py.filling.Filling.__init__()=Priithon.py.filling.Filling-class.html#__init__,Method Priithon.py.filling.FillingFrame.__init__()=Priithon.py.filling.FillingFrame-class.html#__init__,Method Priithon.py.filling.FillingText.__init__()=Priithon.py.filling.FillingText-class.html#__init__,Method Priithon.py.filling.FillingTree.__init__()=Priithon.py.filling.FillingTree-class.html#__init__,Method Priithon.py.frame.Frame.__init__()=Priithon.py.frame.Frame-class.html#__init__,Method Priithon.py.interpreter.Interpreter.__init__()=Priithon.py.interpreter.Interpreter-class.html#__init__,Method Priithon.py.interpreter.InterpreterAlaCarte.__init__()=Priithon.py.interpreter.InterpreterAlaCarte-class.html#__init__,Method Priithon.py.pseudo.PseudoFile.__init__()=Priithon.py.pseudo.PseudoFile-class.html#__init__,Method Priithon.py.pseudo.PseudoFileErr.__init__()=Priithon.py.pseudo.PseudoFileErr-class.html#__init__,Method Priithon.py.pseudo.PseudoFileIn.__init__()=Priithon.py.pseudo.PseudoFileIn-class.html#__init__,Method Priithon.py.pseudo.PseudoFileOut.__init__()=Priithon.py.pseudo.PseudoFileOut-class.html#__init__,Method Priithon.py.pseudo.PseudoKeyword.__init__()=Priithon.py.pseudo.PseudoKeyword-class.html#__init__,Method Priithon.py.shell.Shell.__init__()=Priithon.py.shell.Shell-class.html#__init__,Method Priithon.py.shell.ShellFacade.__init__()=Priithon.py.shell.ShellFacade-class.html#__init__,Method Priithon.py.shell.ShellFrame.__init__()=Priithon.py.shell.ShellFrame-class.html#__init__,Method Priithon.readerSPE.File.__init__()=Priithon.readerSPE.File-class.html#__init__,Method Priithon.scalePanel.scalePanel.__init__()=Priithon.scalePanel.scalePanel-class.html#__init__,Method Priithon.splitND.TestTransientPopup.__init__()=Priithon.splitND.TestTransientPopup-class.html#__init__,Method Priithon.splitND.spv.__init__()=Priithon.splitND.spv-class.html#__init__,Method Priithon.splitND2.spv.__init__()=Priithon.splitND2.spv-class.html#__init__,Method Priithon.splitNDcommon.spvCommon.__init__()=Priithon.splitNDcommon.spvCommon-class.html#__init__,Method Priithon.syncViewersGui.syncViewersGui.__init__()=Priithon.syncViewersGui.syncViewersGui-class.html#__init__,Method Priithon.useful.deco_memoized.__init__()=Priithon.useful.deco_memoized-class.html#__init__,Method Priithon.usefulX._listArrayViewer.__init__()=Priithon.usefulX._listArrayViewer-class.html#__init__,Method Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__()=Priithon.usefulX._listFilesViewer.MyFileDropTarget-class.html#__init__,Method Priithon.usefulX._listFilesViewer.__init__()=Priithon.usefulX._listFilesViewer-class.html#__init__,Method Priithon.viewer.GLViewer.__init__()=Priithon.viewer.GLViewer-class.html#__init__,Method Priithon.viewer2.GLViewer2.__init__()=Priithon.viewer2.GLViewer2-class.html#__init__,Method Priithon.viewerCommon.GLViewerCommon.__init__()=Priithon.viewerCommon.GLViewerCommon-class.html#__init__,Method Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__()=Priithon.viewerRubberbandMode.viewerRubberbandMode-class.html#__init__,Method Priithon.wxAsyncDispatcher.DispatcherConnection.__init__()=Priithon.wxAsyncDispatcher.DispatcherConnection-class.html#__init__,Method Priithon.wxAsyncDispatcher.DispatcherServer.__init__()=Priithon.wxAsyncDispatcher.DispatcherServer-class.html#__init__,Method Priithon.wxAsyncDispatcher.MainWindow.__init__()=Priithon.wxAsyncDispatcher.MainWindow-class.html#__init__,Method Priithon.wxPyPlot.FloatDCWrapper.__init__()=Priithon.wxPyPlot.FloatDCWrapper-class.html#__init__,Method Priithon.wxPyPlot.PlotCanvas.__init__()=Priithon.wxPyPlot.PlotCanvas-class.html#__init__,Method Priithon.wxPyPlot.PlotGraphics.__init__()=Priithon.wxPyPlot.PlotGraphics-class.html#__init__,Method Priithon.wxPyPlot.PolyLine.__init__()=Priithon.wxPyPlot.PolyLine-class.html#__init__,Method Priithon.wxPyPlot.PolyMarker.__init__()=Priithon.wxPyPlot.PolyMarker-class.html#__init__,Method Priithon.wxPyPlot.PolyPoints.__init__()=Priithon.wxPyPlot.PolyPoints-class.html#__init__,Method Priithon.wxPyPlot.plot_printout.__init__()=Priithon.wxPyPlot.plot_printout-class.html#__init__,Method Priithon.zslider.ZSlider.__init__()=Priithon.zslider.ZSlider-class.html#__init__"><a title="Priithon.DragAndDrop.ClipTextPanel.__init__
Priithon.DragAndDrop.FileDropPanel.__init__
Priithon.DragAndDrop.MyFileDropTarget.__init__
Priithon.Mrc.Mrc.__init__
Priithon.Mrc.Mrc2.__init__
Priithon.Scientific_IO_TextFile.TextFile.__init__
Priithon.buttonbox._buttonBox.__init__
Priithon.fileDropPopup.FileDropTarget.__init__
Priithon.gridviewer.ArrayGrid.__init__
Priithon.gridviewer.HugeTable.__init__
Priithon.gridviewer.HugeTableGrid.__init__
Priithon.guiExceptionFrame.MyFrame.__init__
Priithon.guiInfoFrame.HtmlInfoFrame.__init__
Priithon.guiInfoFrame.HtmlWindow.__init__
Priithon.guiParams.guiParams.__init__
Priithon.histogram.HistogramCanvas.__init__
Priithon.histogram.MyCanvasBase.__init__
Priithon.mmviewer.GLViewer.__init__
Priithon.mockNDarray.mockNDarray.__init__
Priithon.ndarray_meta.nd_meta_attribute.__init__
Priithon.plt.dumb_shelve.DbfilenameShelf.__init__
Priithon.plt.dumbdbm_patched._Database.__init__
Priithon.plt.plot_objects.axis_object.__init__
Priithon.plt.plot_objects.axis_window.__init__
Priithon.plt.plot_objects.border_object.__init__
Priithon.plt.plot_objects.graphic_list.__init__
Priithon.plt.plot_objects.image_object.__init__
Priithon.plt.plot_objects.legend_object.__init__
Priithon.plt.plot_objects.line_object.__init__
Priithon.plt.plot_objects.poly_line.__init__
Priithon.plt.plot_objects.poly_marker.__init__
Priithon.plt.plot_objects.poly_points.__init__
Priithon.plt.plot_objects.text_object.__init__
Priithon.plt.plot_objects.text_window.__init__
Priithon.plt.plot_utility.box_object.__init__
Priithon.plt.plot_utility.point_object.__init__
Priithon.plt.plot_utility.property_object.__init__
Priithon.plt.wxplt.graph_printout.__init__
Priithon.plt.wxplt.plot_canvas.__init__
Priithon.plt.wxplt.plot_frame.__init__
Priithon.py.PyAlaCarte.App.__init__
Priithon.py.PyAlaMode.App.__init__
Priithon.py.PyAlaModeTest.App.__init__
Priithon.py.buffer.Buffer.__init__
Priithon.py.crust.Calltip.__init__
Priithon.py.crust.Crust.__init__
Priithon.py.crust.CrustFrame.__init__
Priithon.py.crust.DispatcherListing.__init__
Priithon.py.crust.Display.__init__
Priithon.py.crust.SessionListing.__init__
Priithon.py.dispatcher.BoundMethodWeakref.__init__
Priithon.py.dispatcher.DispatcherError.__init__
Priithon.py.document.Document.__init__
Priithon.py.editor.DialogResults.__init__
Priithon.py.editor.EditWindow.__init__
Priithon.py.editor.Editor.__init__
Priithon.py.editor.EditorFrame.__init__
Priithon.py.editor.EditorNotebook.__init__
Priithon.py.editor.EditorNotebookFrame.__init__
Priithon.py.editor.EditorShellNotebook.__init__
Priithon.py.editor.EditorShellNotebookFrame.__init__
Priithon.py.editwindow.EditWindow.__init__
Priithon.py.filling.Filling.__init__
Priithon.py.filling.FillingFrame.__init__
Priithon.py.filling.FillingText.__init__
Priithon.py.filling.FillingTree.__init__
Priithon.py.frame.Frame.__init__
Priithon.py.interpreter.Interpreter.__init__
Priithon.py.interpreter.InterpreterAlaCarte.__init__
Priithon.py.pseudo.PseudoFile.__init__
Priithon.py.pseudo.PseudoFileErr.__init__
Priithon.py.pseudo.PseudoFileIn.__init__
Priithon.py.pseudo.PseudoFileOut.__init__
Priithon.py.pseudo.PseudoKeyword.__init__
Priithon.py.shell.Shell.__init__
Priithon.py.shell.ShellFacade.__init__
Priithon.py.shell.ShellFrame.__init__
Priithon.readerSPE.File.__init__
Priithon.scalePanel.scalePanel.__init__
Priithon.splitND.TestTransientPopup.__init__
Priithon.splitND.spv.__init__
Priithon.splitND2.spv.__init__
Priithon.splitNDcommon.spvCommon.__init__
Priithon.syncViewersGui.syncViewersGui.__init__
Priithon.useful.deco_memoized.__init__
Priithon.usefulX._listArrayViewer.__init__
Priithon.usefulX._listFilesViewer.MyFileDropTarget.__init__
Priithon.usefulX._listFilesViewer.__init__
Priithon.viewer.GLViewer.__init__
Priithon.viewer2.GLViewer2.__init__
Priithon.viewerCommon.GLViewerCommon.__init__
Priithon.viewerRubberbandMode.viewerRubberbandMode.__init__
Priithon.wxAsyncDispatcher.DispatcherConnection.__init__
Priithon.wxAsyncDispatcher.DispatcherServer.__init__
Priithon.wxAsyncDispatcher.MainWindow.__init__
Priithon.wxPyPlot.FloatDCWrapper.__init__
Priithon.wxPyPlot.PlotCanvas.__init__
Priithon.wxPyPlot.PlotGraphics.__init__
Priithon.wxPyPlot.PolyLine.__init__
Priithon.wxPyPlot.PolyMarker.__init__
Priithon.wxPyPlot.PolyPoints.__init__
Priithon.wxPyPlot.plot_printout.__init__
Priithon.zslider.ZSlider.__init__" class="py-name" href="#" onclick="return doclink('link-21', '__init__', 'link-21');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> <tt class="py-op">=</tt> <tt class="py-name">parent</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">pyshell</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt> <tt class="py-op">=</tt> <tt class="py-name">pyshell</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt> <tt class="py-op">=</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Module Priithon.py.shell=Priithon.py.shell-module.html,Function Priithon.usefulX.shell()=Priithon.usefulX-module.html#shell"><a title="Priithon.py.shell
Priithon.usefulX.shell" class="py-name" href="#" onclick="return doclink('link-22', 'shell', 'link-22');">shell</a></tt> </tt>
</div><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.OnDropFiles"></a><div id="FileDropTarget.OnDropFiles-def"><a name="L44"></a><tt class="py-lineno"> 44</tt> <a class="py-toggle" href="#" id="FileDropTarget.OnDropFiles-toggle" onclick="return toggle('FileDropTarget.OnDropFiles');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#OnDropFiles">OnDropFiles</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">x</tt><tt class="py-op">,</tt> <tt class="py-param">y</tt><tt class="py-op">,</tt> <tt class="py-param">filenames</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.OnDropFiles-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.OnDropFiles-expanded"><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">filenames</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt> <tt class="py-op">=</tt> <tt class="py-string">'r\"%s\"'</tt> <tt class="py-op">%</tt> <tt class="py-name">filenames</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt> <tt class="py-op">=</tt> <tt class="py-string">'[ '</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">filenames</tt><tt class="py-op">:</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">'r\"%s\" , '</tt> <tt class="py-op">%</tt> <tt class="py-name">f</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">']'</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">            <tt class="py-comment">#         #wx26 n = len(txt)</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-comment">#         #wx26 self.pyshell.AppendText(n, txt)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-comment">#         self.pyshell.AppendText(txt)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-comment">#         pos = self.pyshell.GetCurrentPos() + len(txt)</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-comment">#         self.pyshell.SetCurrentPos( pos )</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-comment">#         self.pyshell.SetSelection( pos, pos )</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-name">m</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">Menu</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line"> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">filenames</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">=</tt> <tt class="py-name">filenames</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-comment">## filenames = filenames[0] # danger : misleading name (plural used for a single filename)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">fUPPER_ending</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">5</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">upper</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">isdir</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-23" class="py-name"><a title="Priithon.fileDropPopup.Menu_dir" class="py-name" href="#" onclick="return doclink('link-23', 'Menu_dir', 'link-9');">Menu_dir</a></tt><tt class="py-op">,</tt>  <tt class="py-string">"open directory-list-viewer"</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-24" class="py-name"><a title="Priithon.fileDropPopup.Menu_cd" class="py-name" href="#" onclick="return doclink('link-24', 'Menu_cd', 'link-10');">Menu_cd</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"change working directory"</tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="Priithon.fileDropPopup.Menu_appSysPath" class="py-name" href="#" onclick="return doclink('link-25', 'Menu_appSysPath', 'link-11');">Menu_appSysPath</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"prepend to sys.path"</tt><tt class="py-op">)</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-26" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignFN" class="py-name" href="#" onclick="return doclink('link-26', 'Menu_assignFN', 'link-7');">Menu_assignFN</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"assign dirname to var"</tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">fUPPER_ending</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'.PY'</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> \ </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">                 <tt class="py-name">fUPPER_ending</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'.PYW'</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> \ </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">                 <tt class="py-name">fUPPER_ending</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'.PYC'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-27" class="py-name"><a title="Priithon.fileDropPopup.Menu_exec" class="py-name" href="#" onclick="return doclink('link-27', 'Menu_exec', 'link-12');">Menu_exec</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"execute py-file"</tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-28" class="py-name"><a title="Priithon.fileDropPopup.Menu_import" class="py-name" href="#" onclick="return doclink('link-28', 'Menu_import', 'link-13');">Menu_import</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"import"</tt><tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-29" class="py-name"><a title="Priithon.fileDropPopup.Menu_importAs" class="py-name" href="#" onclick="return doclink('link-29', 'Menu_importAs', 'link-14');">Menu_importAs</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"import as ..."</tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-30" class="py-name"><a title="Priithon.fileDropPopup.Menu_editor" class="py-name" href="#" onclick="return doclink('link-30', 'Menu_editor', 'link-15');">Menu_editor</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"edit py-file"</tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-31" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignFN" class="py-name" href="#" onclick="return doclink('link-31', 'Menu_assignFN', 'link-7');">Menu_assignFN</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"assign filename to var"</tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-32" class="py-name"><a title="Priithon.fileDropPopup.Menu_assign" class="py-name" href="#" onclick="return doclink('link-32', 'Menu_assign', 'link-6');">Menu_assign</a></tt><tt class="py-op">,</tt>  <tt class="py-string">"load and assign to var"</tt><tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-33" class="py-name"><a title="Priithon.fileDropPopup.Menu_view" class="py-name" href="#" onclick="return doclink('link-33', 'Menu_view', 'link-4');">Menu_view</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"view"</tt><tt class="py-op">)</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-34" class="py-name"><a title="Priithon.fileDropPopup.Menu_view2" class="py-name" href="#" onclick="return doclink('link-34', 'Menu_view2', 'link-5');">Menu_view2</a></tt><tt class="py-op">,</tt>    <tt class="py-string">"view multi-color"</tt><tt class="py-op">)</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-35" class="py-name"><a title="Priithon.fileDropPopup.Menu_loadTxt2d" class="py-name" href="#" onclick="return doclink('link-35', 'Menu_loadTxt2d', 'link-17');">Menu_loadTxt2d</a></tt><tt class="py-op">,</tt>    <tt class="py-string">"load text table"</tt><tt class="py-op">,</tt> <tt class="py-string">"load tab-separated CVS"</tt><tt class="py-op">)</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-36" class="py-name"><a title="Priithon.fileDropPopup.Menu_editor2" class="py-name" href="#" onclick="return doclink('link-36', 'Menu_editor2', 'link-16');">Menu_editor2</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"edit text file"</tt><tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">                <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-37" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignFN" class="py-name" href="#" onclick="return doclink('link-37', 'Menu_assignFN', 'link-7');">Menu_assignFN</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"assign filename to var"</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">=</tt> <tt class="py-name">filenames</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">            <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-38" class="py-name"><a title="Priithon.fileDropPopup.Menu_view" class="py-name" href="#" onclick="return doclink('link-38', 'Menu_view', 'link-4');">Menu_view</a></tt><tt class="py-op">,</tt>        <tt class="py-string">"view files separately"</tt><tt class="py-op">)</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">            <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-39" class="py-name"><a title="Priithon.fileDropPopup.Menu_view2" class="py-name" href="#" onclick="return doclink('link-39', 'Menu_view2', 'link-5');">Menu_view2</a></tt><tt class="py-op">,</tt>       <tt class="py-string">"view files as one multi-color"</tt><tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">            <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-40" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignSeq" class="py-name" href="#" onclick="return doclink('link-40', 'Menu_assignSeq', 'link-18');">Menu_assignSeq</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"load and assign img seq into one array var"</tt><tt class="py-op">)</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">            <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-41" class="py-name"><a title="Priithon.fileDropPopup.Menu_viewSeq" class="py-name" href="#" onclick="return doclink('link-41', 'Menu_viewSeq', 'link-19');">Menu_viewSeq</a></tt><tt class="py-op">,</tt>     <tt class="py-string">"view image sequence"</tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">            <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-42" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignList" class="py-name" href="#" onclick="return doclink('link-42', 'Menu_assignList', 'link-8');">Menu_assignList</a></tt><tt class="py-op">,</tt>  <tt class="py-string">"assign list of filenames to var"</tt><tt class="py-op">)</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">             </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">Append</tt><tt class="py-op">(</tt><tt id="link-43" class="py-name"><a title="Priithon.fileDropPopup.Menu_paste" class="py-name" href="#" onclick="return doclink('link-43', 'Menu_paste', 'link-3');">Menu_paste</a></tt><tt class="py-op">,</tt>   <tt class="py-string">"paste"</tt><tt class="py-op">)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-44" class="py-name"><a title="Priithon.fileDropPopup.Menu_assign" class="py-name" href="#" onclick="return doclink('link-44', 'Menu_assign', 'link-6');">Menu_assign</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onAssign()=Priithon.fileDropPopup.FileDropTarget-class.html#onAssign"><a title="Priithon.fileDropPopup.FileDropTarget.onAssign" class="py-name" href="#" onclick="return doclink('link-45', 'onAssign', 'link-45');">onAssign</a></tt><tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-46" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignFN" class="py-name" href="#" onclick="return doclink('link-46', 'Menu_assignFN', 'link-7');">Menu_assignFN</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onAssignFN()=Priithon.fileDropPopup.FileDropTarget-class.html#onAssignFN"><a title="Priithon.fileDropPopup.FileDropTarget.onAssignFN" class="py-name" href="#" onclick="return doclink('link-47', 'onAssignFN', 'link-47');">onAssignFN</a></tt><tt class="py-op">)</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-48" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignList" class="py-name" href="#" onclick="return doclink('link-48', 'Menu_assignList', 'link-8');">Menu_assignList</a></tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onAssignList()=Priithon.fileDropPopup.FileDropTarget-class.html#onAssignList"><a title="Priithon.fileDropPopup.FileDropTarget.onAssignList" class="py-name" href="#" onclick="return doclink('link-49', 'onAssignList', 'link-49');">onAssignList</a></tt><tt class="py-op">)</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-50" class="py-name"><a title="Priithon.fileDropPopup.Menu_paste" class="py-name" href="#" onclick="return doclink('link-50', 'Menu_paste', 'link-3');">Menu_paste</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onPaste()=Priithon.fileDropPopup.FileDropTarget-class.html#onPaste"><a title="Priithon.fileDropPopup.FileDropTarget.onPaste" class="py-name" href="#" onclick="return doclink('link-51', 'onPaste', 'link-51');">onPaste</a></tt><tt class="py-op">)</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-52" class="py-name"><a title="Priithon.fileDropPopup.Menu_view" class="py-name" href="#" onclick="return doclink('link-52', 'Menu_view', 'link-4');">Menu_view</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onView()=Priithon.fileDropPopup.FileDropTarget-class.html#onView"><a title="Priithon.fileDropPopup.FileDropTarget.onView" class="py-name" href="#" onclick="return doclink('link-53', 'onView', 'link-53');">onView</a></tt><tt class="py-op">)</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-54" class="py-name"><a title="Priithon.fileDropPopup.Menu_view2" class="py-name" href="#" onclick="return doclink('link-54', 'Menu_view2', 'link-5');">Menu_view2</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onView2()=Priithon.fileDropPopup.FileDropTarget-class.html#onView2"><a title="Priithon.fileDropPopup.FileDropTarget.onView2" class="py-name" href="#" onclick="return doclink('link-55', 'onView2', 'link-55');">onView2</a></tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-56" class="py-name"><a title="Priithon.fileDropPopup.Menu_dir" class="py-name" href="#" onclick="return doclink('link-56', 'Menu_dir', 'link-9');">Menu_dir</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onDir()=Priithon.fileDropPopup.FileDropTarget-class.html#onDir"><a title="Priithon.fileDropPopup.FileDropTarget.onDir" class="py-name" href="#" onclick="return doclink('link-57', 'onDir', 'link-57');">onDir</a></tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-58" class="py-name"><a title="Priithon.fileDropPopup.Menu_cd" class="py-name" href="#" onclick="return doclink('link-58', 'Menu_cd', 'link-10');">Menu_cd</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onCd()=Priithon.fileDropPopup.FileDropTarget-class.html#onCd"><a title="Priithon.fileDropPopup.FileDropTarget.onCd" class="py-name" href="#" onclick="return doclink('link-59', 'onCd', 'link-59');">onCd</a></tt><tt class="py-op">)</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-60" class="py-name"><a title="Priithon.fileDropPopup.Menu_appSysPath" class="py-name" href="#" onclick="return doclink('link-60', 'Menu_appSysPath', 'link-11');">Menu_appSysPath</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-61" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onAppSysPath()=Priithon.fileDropPopup.FileDropTarget-class.html#onAppSysPath"><a title="Priithon.fileDropPopup.FileDropTarget.onAppSysPath" class="py-name" href="#" onclick="return doclink('link-61', 'onAppSysPath', 'link-61');">onAppSysPath</a></tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-62" class="py-name"><a title="Priithon.fileDropPopup.Menu_assignSeq" class="py-name" href="#" onclick="return doclink('link-62', 'Menu_assignSeq', 'link-18');">Menu_assignSeq</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onAssignSeq()=Priithon.fileDropPopup.FileDropTarget-class.html#onAssignSeq"><a title="Priithon.fileDropPopup.FileDropTarget.onAssignSeq" class="py-name" href="#" onclick="return doclink('link-63', 'onAssignSeq', 'link-63');">onAssignSeq</a></tt><tt class="py-op">)</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-64" class="py-name"><a title="Priithon.fileDropPopup.Menu_viewSeq" class="py-name" href="#" onclick="return doclink('link-64', 'Menu_viewSeq', 'link-19');">Menu_viewSeq</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-65" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onViewSeq()=Priithon.fileDropPopup.FileDropTarget-class.html#onViewSeq"><a title="Priithon.fileDropPopup.FileDropTarget.onViewSeq" class="py-name" href="#" onclick="return doclink('link-65', 'onViewSeq', 'link-65');">onViewSeq</a></tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-66" class="py-name"><a title="Priithon.fileDropPopup.Menu_exec" class="py-name" href="#" onclick="return doclink('link-66', 'Menu_exec', 'link-12');">Menu_exec</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onExe()=Priithon.fileDropPopup.FileDropTarget-class.html#onExe"><a title="Priithon.fileDropPopup.FileDropTarget.onExe" class="py-name" href="#" onclick="return doclink('link-67', 'onExe', 'link-67');">onExe</a></tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-68" class="py-name"><a title="Priithon.fileDropPopup.Menu_import" class="py-name" href="#" onclick="return doclink('link-68', 'Menu_import', 'link-13');">Menu_import</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-69" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onImport()=Priithon.fileDropPopup.FileDropTarget-class.html#onImport"><a title="Priithon.fileDropPopup.FileDropTarget.onImport" class="py-name" href="#" onclick="return doclink('link-69', 'onImport', 'link-69');">onImport</a></tt><tt class="py-op">)</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-70" class="py-name"><a title="Priithon.fileDropPopup.Menu_importAs" class="py-name" href="#" onclick="return doclink('link-70', 'Menu_importAs', 'link-14');">Menu_importAs</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onImportAs()=Priithon.fileDropPopup.FileDropTarget-class.html#onImportAs"><a title="Priithon.fileDropPopup.FileDropTarget.onImportAs" class="py-name" href="#" onclick="return doclink('link-71', 'onImportAs', 'link-71');">onImportAs</a></tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-72" class="py-name"><a title="Priithon.fileDropPopup.Menu_editor" class="py-name" href="#" onclick="return doclink('link-72', 'Menu_editor', 'link-15');">Menu_editor</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onEditor()=Priithon.fileDropPopup.FileDropTarget-class.html#onEditor"><a title="Priithon.fileDropPopup.FileDropTarget.onEditor" class="py-name" href="#" onclick="return doclink('link-73', 'onEditor', 'link-73');">onEditor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-74" class="py-name"><a title="Priithon.fileDropPopup.Menu_loadTxt2d" class="py-name" href="#" onclick="return doclink('link-74', 'Menu_loadTxt2d', 'link-17');">Menu_loadTxt2d</a></tt><tt class="py-op">,</tt>  <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name" targets="Method Priithon.fileDropPopup.FileDropTarget.onLoadTxt()=Priithon.fileDropPopup.FileDropTarget-class.html#onLoadTxt"><a title="Priithon.fileDropPopup.FileDropTarget.onLoadTxt" class="py-name" href="#" onclick="return doclink('link-75', 'onLoadTxt', 'link-75');">onLoadTxt</a></tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">EVT_MENU</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">,</tt> <tt id="link-76" class="py-name"><a title="Priithon.fileDropPopup.Menu_editor2" class="py-name" href="#" onclick="return doclink('link-76', 'Menu_editor2', 'link-16');">Menu_editor2</a></tt><tt class="py-op">,</tt>  <tt class="py-keyword">lambda</tt> <tt class="py-name">ev</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="Priithon.fileDropPopup.FileDropTarget.onEditor" class="py-name" href="#" onclick="return doclink('link-77', 'onEditor', 'link-73');">onEditor</a></tt><tt class="py-op">(</tt><tt class="py-name">ev</tt><tt class="py-op">,</tt> <tt class="py-name">checkPyFile</tt><tt class="py-op">=</tt><tt id="link-78" class="py-name" targets="Variable Priithon.wxPyPlot.False=Priithon.wxPyPlot-module.html#False"><a title="Priithon.wxPyPlot.False" class="py-name" href="#" onclick="return doclink('link-78', 'False', 'link-78');">False</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">         </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt><tt class="py-op">.</tt><tt class="py-name">PopupMenuXY</tt><tt class="py-op">(</tt><tt class="py-name">m</tt><tt class="py-op">,</tt> <tt id="link-79" class="py-name" targets="Variable Priithon.viewer.x=Priithon.viewer-module.html#x,Variable Priithon.viewer2.x=Priithon.viewer2-module.html#x,Variable Priithon.viewerCommon.x=Priithon.viewerCommon-module.html#x"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-79', 'x', 'link-79');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
</div><a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onPaste"></a><div id="FileDropTarget.onPaste-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="FileDropTarget.onPaste-toggle" onclick="return toggle('FileDropTarget.onPaste');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onPaste">onPaste</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onPaste-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onPaste-expanded"><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt class="py-name">AppendText</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">            <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt class="py-name">AppendText</tt><tt class="py-op">(</tt><tt class="py-name">n</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-name">pos</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt class="py-name">GetCurrentPos</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt class="py-name">SetCurrentPos</tt><tt class="py-op">(</tt> <tt class="py-name">pos</tt> <tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt class="py-name">SetSelection</tt><tt class="py-op">(</tt> <tt class="py-name">pos</tt><tt class="py-op">,</tt> <tt class="py-name">pos</tt> <tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onView"></a><div id="FileDropTarget.onView-def"><a name="L131"></a><tt class="py-lineno">131</tt> <a class="py-toggle" href="#" id="FileDropTarget.onView-toggle" onclick="return toggle('FileDropTarget.onView');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onView">onView</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onView-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onView-expanded"><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Module Priithon.all=Priithon.all-module.html"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-80', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-81" class="py-name" targets="Method Priithon.mockNDarray.mockNDarray.view()=Priithon.mockNDarray.mockNDarray-class.html#view,Function Priithon.viewer.view()=Priithon.viewer-module.html#view,Function Priithon.viewer2.view()=Priithon.viewer2-module.html#view"><a title="Priithon.mockNDarray.mockNDarray.view
Priithon.viewer.view
Priithon.viewer2.view" class="py-name" href="#" onclick="return doclink('link-81', 'view', 'link-81');">view</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">)</tt> <tt class="py-comment"># 'list' for "view separately"</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-82" class="py-name" targets="Method Priithon.py.shell.Shell.addHistory()=Priithon.py.shell.Shell-class.html#addHistory"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-82', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-string">"Y.view( %s )"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onView2"></a><div id="FileDropTarget.onView2-def"><a name="L136"></a><tt class="py-lineno">136</tt> <a class="py-toggle" href="#" id="FileDropTarget.onView2-toggle" onclick="return toggle('FileDropTarget.onView2');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onView2">onView2</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onView2-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onView2-expanded"><a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-83', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt class="py-name">list</tt><tt class="py-op">,</tt> <tt class="py-name">tuple</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">            <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt class="py-name">tuple</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt>  <tt class="py-comment"># 'tuple' for "view as mock-adarray"</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt> <tt class="py-op">=</tt> <tt class="py-string">'( '</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">fff</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">:</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">'r\"%s\" , '</tt> <tt class="py-op">%</tt> <tt class="py-name">fff</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">')'</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">            <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">        <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt class="py-name">view2</tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">,</tt> <tt class="py-name">colorAxis</tt><tt class="py-op">=</tt><tt class="py-string">'smart'</tt><tt class="py-op">)</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-84', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-string">"Y.view2( %s, colorAxis='smart')"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onDir"></a><div id="FileDropTarget.onDir-def"><a name="L148"></a><tt class="py-lineno">148</tt> <a class="py-toggle" href="#" id="FileDropTarget.onDir-toggle" onclick="return toggle('FileDropTarget.onDir');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onDir">onDir</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onDir-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onDir-expanded"><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-85', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name" targets="Function Priithon.usefulX.listFilesViewer()=Priithon.usefulX-module.html#listFilesViewer"><a title="Priithon.usefulX.listFilesViewer" class="py-name" href="#" onclick="return doclink('link-86', 'listFilesViewer', 'link-86');">listFilesViewer</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">)</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-87', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-string">"Y.listFilesViewer(r\"%s\")"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onCd"></a><div id="FileDropTarget.onCd-def"><a name="L152"></a><tt class="py-lineno">152</tt> <a class="py-toggle" href="#" id="FileDropTarget.onCd-toggle" onclick="return toggle('FileDropTarget.onCd');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onCd">onCd</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onCd-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onCd-expanded"><a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-88', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">        <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">chdir</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">        <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-string">"os.chdir(r\"%s\")"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">        <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-89" class="py-name" targets="Function Priithon.usefulX.shellMessage()=Priithon.usefulX-module.html#shellMessage"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-89', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"###  %s\n"</tt><tt class="py-op">%</tt> <tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-90', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onAppSysPath"></a><div id="FileDropTarget.onAppSysPath-def"><a name="L159"></a><tt class="py-lineno">159</tt> <a class="py-toggle" href="#" id="FileDropTarget.onAppSysPath-toggle" onclick="return toggle('FileDropTarget.onAppSysPath');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onAppSysPath">onAppSysPath</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onAppSysPath-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onAppSysPath-expanded"><a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-91', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-comment">#20100311 sys.path.append( self.fn_or_fns )</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#20100311 s = "sys.path.append(r\"%s\")"% (self.fn_or_fns,)</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name" targets="Function Priithon.useful.insert()=Priithon.useful-module.html#insert"><a title="Priithon.useful.insert" class="py-name" href="#" onclick="return doclink('link-92', 'insert', 'link-92');">insert</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">        <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-string">"sys.path.insert(0, r\"%s\")"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-93" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-93', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"###  %s\n"</tt><tt class="py-op">%</tt> <tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-94', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
</div><a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onAssign"></a><div id="FileDropTarget.onAssign-def"><a name="L169"></a><tt class="py-lineno">169</tt> <a class="py-toggle" href="#" id="FileDropTarget.onAssign-toggle" onclick="return toggle('FileDropTarget.onAssign');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onAssign">onAssign</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onAssign-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onAssign-expanded"><a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">        <tt class="py-name">fn</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-95" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-95', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">        <tt class="py-name">a</tt> <tt class="py-op">=</tt> <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name" targets="Function Priithon.Mrc.load()=Priithon.Mrc-module.html#load,Method Priithon.mmviewer.GLViewer.load()=Priithon.mmviewer.GLViewer-class.html#load,Function Priithon.readerSPE.load()=Priithon.readerSPE-module.html#load,Function Priithon.useful.load()=Priithon.useful-module.html#load,Function Priithon.usefulX.load()=Priithon.usefulX-module.html#load"><a title="Priithon.Mrc.load
Priithon.mmviewer.GLViewer.load
Priithon.readerSPE.load
Priithon.useful.load
Priithon.usefulX.load" class="py-name" href="#" onclick="return doclink('link-96', 'load', 'link-96');">load</a></tt><tt class="py-op">(</tt><tt class="py-name">fn</tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">a</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">            <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-97" class="py-name" targets="Function Priithon.usefulX.assignNdArrToVarname()=Priithon.usefulX-module.html#assignNdArrToVarname"><a title="Priithon.usefulX.assignNdArrToVarname" class="py-name" href="#" onclick="return doclink('link-97', 'assignNdArrToVarname', 'link-97');">assignNdArrToVarname</a></tt><tt class="py-op">(</tt><tt class="py-name">a</tt><tt class="py-op">,</tt> <tt class="py-string">"Y.load( r'%s' )"</tt><tt class="py-op">%</tt><tt class="py-name">fn</tt><tt class="py-op">)</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">v</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-98', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-string">"%s = Y.load( r'%s' )"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt><tt class="py-name">fn</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onAssignFN"></a><div id="FileDropTarget.onAssignFN-def"><a name="L177"></a><tt class="py-lineno">177</tt> <a class="py-toggle" href="#" id="FileDropTarget.onAssignFN-toggle" onclick="return toggle('FileDropTarget.onAssignFN');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onAssignFN">onAssignFN</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onAssignFN-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onAssignFN-expanded"><a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">        <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GetTextFromUser</tt><tt class="py-op">(</tt><tt class="py-string">"assign filename to varname:"</tt><tt class="py-op">,</tt> <tt class="py-string">'new variable'</tt><tt class="py-op">,</tt> <tt class="py-string">'fn'</tt><tt class="py-op">)</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">v</tt><tt class="py-op">:</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">            <tt class="py-keyword">exec</tt> <tt class="py-string">'%s = %s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-99" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-99', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">            <tt id="link-100" class="py-name" targets="Variable Priithon.mandel.e=Priithon.mandel-module.html#e,Variable Priithon.plt.e=Priithon.plt-module.html#e,Variable Priithon.plt.interface.e=Priithon.plt.interface-module.html#e,Variable Priithon.plt.plot_objects.e=Priithon.plt.plot_objects-module.html#e,Variable Priithon.plt.plot_utility.e=Priithon.plt.plot_utility-module.html#e,Variable Priithon.plt.wxplt.e=Priithon.plt.wxplt-module.html#e"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-100', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">            <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error when assigning filename to __main__.%s: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">                          <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-101" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-101', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-102" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-102', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">                          <tt class="py-string">"Bad Varname  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">                          <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-103" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-103', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">            <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-string">"%s = %s"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">            <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-104" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-104', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"### %s\n"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-105', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onAssignList"></a><div id="FileDropTarget.onAssignList-def"><a name="L198"></a><tt class="py-lineno">198</tt> <a class="py-toggle" href="#" id="FileDropTarget.onAssignList-toggle" onclick="return toggle('FileDropTarget.onAssignList');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onAssignList">onAssignList</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onAssignList-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onAssignList-expanded"><a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">        <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GetTextFromUser</tt><tt class="py-op">(</tt><tt class="py-string">"assign list to varname:"</tt><tt class="py-op">,</tt> <tt class="py-string">'new variable'</tt><tt class="py-op">,</tt> <tt class="py-string">'fns'</tt><tt class="py-op">)</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">v</tt><tt class="py-op">:</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">            <tt class="py-keyword">exec</tt> <tt class="py-string">'%s = %s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-106" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-106', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">            <tt id="link-107" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-107', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">            <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error when assigning list to __main__.%s: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">                          <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-108" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-108', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-109" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-109', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">                          <tt class="py-string">"Bad Varname  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">                          <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-110', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">            <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-111', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"### %s = &lt;list of files&gt;\n"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onAssignSeq"></a><div id="FileDropTarget.onAssignSeq-def"><a name="L218"></a><tt class="py-lineno">218</tt> <a class="py-toggle" href="#" id="FileDropTarget.onAssignSeq-toggle" onclick="return toggle('FileDropTarget.onAssignSeq');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onAssignSeq">onAssignSeq</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onAssignSeq-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onAssignSeq-expanded"><a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-112', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">        <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GetTextFromUser</tt><tt class="py-op">(</tt><tt class="py-string">"assign image sequence to array varname:"</tt><tt class="py-op">,</tt> <tt class="py-string">'new variable'</tt><tt class="py-op">,</tt> <tt class="py-string">'imgs'</tt><tt class="py-op">)</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">v</tt><tt class="py-op">:</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">            <tt class="py-keyword">exec</tt> <tt class="py-string">'%s = U.loadImg_seq(%s)'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-113" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-113', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">            <tt id="link-114" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-114', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line">            <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error when loading and assigning img.seq. to __main__.%s: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line">                          <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-115" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-115', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-116" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-116', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">                          <tt class="py-string">"Bad Varname  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">                          <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line">            <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-117" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-117', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"### %s = U.loadImg_seq(&lt;list of files&gt;)\n"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onViewSeq"></a><div id="FileDropTarget.onViewSeq-def"><a name="L238"></a><tt class="py-lineno">238</tt> <a class="py-toggle" href="#" id="FileDropTarget.onViewSeq-toggle" onclick="return toggle('FileDropTarget.onViewSeq');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onViewSeq">onViewSeq</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onViewSeq-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onViewSeq-expanded"><a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-118" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-118', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt><tt class="py-op">,</tt><tt class="py-name">U</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">            <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-119" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.view
Priithon.viewer.view
Priithon.viewer2.view" class="py-name" href="#" onclick="return doclink('link-119', 'view', 'link-81');">view</a></tt><tt class="py-op">(</tt> <tt class="py-name">U</tt><tt class="py-op">.</tt><tt id="link-120" class="py-name" targets="Function Priithon.useful.loadImg_seq()=Priithon.useful-module.html#loadImg_seq"><a title="Priithon.useful.loadImg_seq" class="py-name" href="#" onclick="return doclink('link-120', 'loadImg_seq', 'link-120');">loadImg_seq</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-121" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-121', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> </tt>
<a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line">            <tt id="link-122" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-122', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">            <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error when loading image sequence: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">                          <tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-123" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-123', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-124" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-124', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line">                          <tt class="py-string">"Non consistent image shapes  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line">                          <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line">            <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-string">"Y.view( U.loadImg_seq(&lt;fileslist&gt;) )"</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line">            <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-125" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-125', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"###  %s\n"</tt><tt class="py-op">%</tt> <tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
</div><a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line"> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onExe"></a><div id="FileDropTarget.onExe-def"><a name="L256"></a><tt class="py-lineno">256</tt> <a class="py-toggle" href="#" id="FileDropTarget.onExe-toggle" onclick="return toggle('FileDropTarget.onExe');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onExe">onExe</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onExe-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onExe-expanded"><a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt><tt class="py-name">os</tt><tt class="py-op">,</tt><tt class="py-name">__main__</tt> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line">        <tt class="py-name">p</tt>   <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">dirname</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line">        <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="Priithon.useful.insert" class="py-name" href="#" onclick="return doclink('link-126', 'insert', 'link-92');">insert</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">p</tt><tt class="py-op">)</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line">                <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-127', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">                <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-128" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-128', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"### execfile(r\"%s\")\n"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-129" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-129', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-string">"execfile(r\"%s\")"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">                <tt class="py-name">execfile</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt><tt class="py-op">,</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">)</tt> </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-130" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-130', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line">                    <tt class="py-keyword">raise</tt> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">                <tt id="link-131" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-131', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">                <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error on execfile: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">                              <tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-132" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-132', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-133" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-133', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">                              <tt class="py-string">"Bad Varname  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line">                              <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">        <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line">            <tt class="py-comment">#20090319 del sys.path[0]</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">remove</tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">)</tt> </tt>
</div><a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onImport"></a><div id="FileDropTarget.onImport-def"><a name="L278"></a><tt class="py-lineno">278</tt> <a class="py-toggle" href="#" id="FileDropTarget.onImport-toggle" onclick="return toggle('FileDropTarget.onImport');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onImport">onImport</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onImport-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onImport-expanded"><a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt><tt class="py-name">os</tt><tt class="py-op">,</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line">        <tt class="py-name">p</tt>   <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">dirname</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> </tt>
<a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">        <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-134" class="py-name"><a title="Priithon.useful.insert" class="py-name" href="#" onclick="return doclink('link-134', 'insert', 'link-92');">insert</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">p</tt><tt class="py-op">)</tt> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line">                <tt id="link-135" class="py-name" targets="Variable Priithon.mandel.mod=Priithon.mandel-module.html#mod,Variable Priithon.plt.interface.mod=Priithon.plt.interface-module.html#mod,Variable Priithon.plt.mod=Priithon.plt-module.html#mod,Variable Priithon.plt.plot_objects.mod=Priithon.plt.plot_objects-module.html#mod,Variable Priithon.plt.plot_utility.mod=Priithon.plt.plot_utility-module.html#mod,Variable Priithon.plt.wxplt.mod=Priithon.plt.wxplt-module.html#mod"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-135', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">basename</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line">                <tt id="link-136" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-136', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">splitext</tt><tt class="py-op">(</tt> <tt id="link-137" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-137', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line">                <tt class="py-keyword">exec</tt> <tt class="py-op">(</tt><tt class="py-string">'import %s'</tt> <tt class="py-op">%</tt> <tt id="link-138" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-138', 'mod', 'link-135');">mod</a></tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
<a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-139" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-139', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-string">"import %s"</tt><tt class="py-op">%</tt><tt id="link-140" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-140', 'mod', 'link-135');">mod</a></tt><tt class="py-op">)</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-141" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-141', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line">                    <tt class="py-keyword">raise</tt> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line">                <tt id="link-142" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-142', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line">                <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error on import: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line">                              <tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-143" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-143', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-144" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-144', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line">                              <tt class="py-string">"Bad Varname  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line">                              <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line">                <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-145" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-145', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line">                <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-146" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-146', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"### import %s\n"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-147" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-147', 'mod', 'link-135');">mod</a></tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line">        <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"leave '%s' in front of sys.path ?"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>  </tt>
<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line">                             <tt class="py-string">"Python import search path:"</tt><tt class="py-op">,</tt> <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">YES_NO</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">YES</tt><tt class="py-op">:</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line">                <tt class="py-comment">#20090319 del sys.path[0]</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line"><tt class="py-comment"></tt>                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">remove</tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">)</tt> </tt>
</div><a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onImportAs"></a><div id="FileDropTarget.onImportAs-def"><a name="L306"></a><tt class="py-lineno">306</tt> <a class="py-toggle" href="#" id="FileDropTarget.onImportAs-toggle" onclick="return toggle('FileDropTarget.onImportAs');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onImportAs">onImportAs</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onImportAs-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onImportAs-expanded"><a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line">        <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GetTextFromUser</tt><tt class="py-op">(</tt><tt class="py-string">"import module as :"</tt><tt class="py-op">,</tt> <tt class="py-string">'new mod name'</tt><tt class="py-op">)</tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">v</tt><tt class="py-op">:</tt> </tt>
<a name="L309"></a><tt class="py-lineno">309</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt><tt class="py-name">os</tt><tt class="py-op">,</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line">        <tt class="py-name">p</tt>   <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">dirname</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> </tt>
<a name="L312"></a><tt class="py-lineno">312</tt>  <tt class="py-line">        <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-148" class="py-name"><a title="Priithon.useful.insert" class="py-name" href="#" onclick="return doclink('link-148', 'insert', 'link-92');">insert</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">p</tt><tt class="py-op">)</tt> </tt>
<a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line">                <tt id="link-149" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-149', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">basename</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> <tt class="py-op">)</tt> </tt>
<a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line">                <tt id="link-150" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-150', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">splitext</tt><tt class="py-op">(</tt> <tt id="link-151" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-151', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line">                <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-string">'import %s as %s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-152" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-152', 'mod', 'link-135');">mod</a></tt><tt class="py-op">,</tt> <tt class="py-name">v</tt><tt class="py-op">)</tt> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line">                <tt class="py-keyword">exec</tt> <tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-153" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-153', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L321"></a><tt class="py-lineno">321</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-154" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-154', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line">                    <tt class="py-keyword">raise</tt> </tt>
<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line">                <tt id="link-155" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-155', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">                <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error on 'import %s as %s': %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line">                              <tt class="py-op">(</tt><tt id="link-156" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-156', 'mod', 'link-135');">mod</a></tt><tt class="py-op">,</tt> <tt class="py-name">v</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-157" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-157', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-158" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-158', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line">                              <tt class="py-string">"Bad Varname  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line">                              <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line">                <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-159" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-159', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line">                <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-160" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-160', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"### import %s as %s\n"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-161" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-161', 'mod', 'link-135');">mod</a></tt><tt class="py-op">,</tt><tt class="py-name">v</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line">        <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"leave '%s' in front of sys.path ?"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>  </tt>
<a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line">                             <tt class="py-string">"Python import search path:"</tt><tt class="py-op">,</tt> <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">YES_NO</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">YES</tt><tt class="py-op">:</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line">                <tt class="py-comment">#20090319 del sys.path[0]</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line"><tt class="py-comment"></tt>                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">remove</tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">)</tt> </tt>
</div><a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line"> </tt>
<a name="FileDropTarget.onEditor"></a><div id="FileDropTarget.onEditor-def"><a name="L338"></a><tt class="py-lineno">338</tt> <a class="py-toggle" href="#" id="FileDropTarget.onEditor-toggle" onclick="return toggle('FileDropTarget.onEditor');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onEditor">onEditor</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">,</tt> <tt class="py-param">checkPyFile</tt><tt class="py-op">=</tt><tt id="link-162" class="py-name"><a title="Priithon.wxPyPlot.True" class="py-name" href="#" onclick="return doclink('link-162', 'True', 'link-2');">True</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onEditor-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onEditor-expanded"><a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt><tt class="py-name">os</tt><tt class="py-op">,</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line">            <tt class="py-comment">#mod = os.path.basename( filenames )</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt id="link-163" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-163', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fn_or_fns</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">checkPyFile</tt><tt class="py-op">:</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line">                <tt id="link-164" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-164', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">splitext</tt><tt class="py-op">(</tt> <tt id="link-165" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-165', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line">                <tt id="link-166" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-166', 'mod', 'link-135');">mod</a></tt> <tt class="py-op">+=</tt> <tt class="py-string">'.py'</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">isfile</tt><tt class="py-op">(</tt><tt id="link-167" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-167', 'mod', 'link-135');">mod</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line">                    <tt class="py-name">r</tt><tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"do you want to start editing a new .py-file ?"</tt><tt class="py-op">,</tt>  </tt>
<a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line">                                     <tt class="py-string">"py file not found !"</tt><tt class="py-op">,</tt>  </tt>
<a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line">                                     <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">CENTER</tt><tt class="py-op">|</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">YES_NO</tt><tt class="py-op">|</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">CANCEL</tt><tt class="py-op">|</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_EXCLAMATION</tt><tt class="py-op">)</tt> </tt>
<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">r</tt> <tt class="py-op">!=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">YES</tt><tt class="py-op">:</tt> </tt>
<a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> </tt>
<a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line"> </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-168" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-168', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line">            <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-169" class="py-name" targets="Module Priithon.py.editor=Priithon.py.editor-module.html,Function Priithon.usefulX.editor()=Priithon.usefulX-module.html#editor"><a title="Priithon.py.editor
Priithon.usefulX.editor" class="py-name" href="#" onclick="return doclink('link-169', 'editor', 'link-169');">editor</a></tt><tt class="py-op">(</tt><tt id="link-170" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-170', 'mod', 'link-135');">mod</a></tt><tt class="py-op">)</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-171" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-171', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-string">"Y.editor( %s )"</tt><tt class="py-op">%</tt><tt id="link-172" class="py-name"><a title="Priithon.mandel.mod
Priithon.plt.interface.mod
Priithon.plt.mod
Priithon.plt.plot_objects.mod
Priithon.plt.plot_utility.mod
Priithon.plt.wxplt.mod" class="py-name" href="#" onclick="return doclink('link-172', 'mod', 'link-135');">mod</a></tt><tt class="py-op">)</tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-173" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-173', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> </tt>
<a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line">            <tt id="link-174" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-174', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L361"></a><tt class="py-lineno">361</tt>  <tt class="py-line">            <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error on starting Y.editor: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">                              <tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-175" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-175', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-176" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-176', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">                          <tt class="py-string">"Error  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line">                          <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
</div><a name="FileDropTarget.onLoadTxt"></a><div id="FileDropTarget.onLoadTxt-def"><a name="L365"></a><tt class="py-lineno">365</tt> <a class="py-toggle" href="#" id="FileDropTarget.onLoadTxt-toggle" onclick="return toggle('FileDropTarget.onLoadTxt');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.fileDropPopup.FileDropTarget-class.html#onLoadTxt">onLoadTxt</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileDropTarget.onLoadTxt-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileDropTarget.onLoadTxt-expanded"><a name="L366"></a><tt class="py-lineno">366</tt>  <tt class="py-line">        <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">GetTextFromUser</tt><tt class="py-op">(</tt><tt class="py-string">"load 2d table to varname:"</tt><tt class="py-op">,</tt> <tt class="py-string">'new variable'</tt><tt class="py-op">,</tt> <tt class="py-string">'a'</tt><tt class="py-op">)</tt> </tt>
<a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">v</tt><tt class="py-op">:</tt> </tt>
<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">__main__</tt> </tt>
<a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line">        <tt class="py-name">exeStr</tt> <tt class="py-op">=</tt> <tt class="py-string">'%s = U.loadTxt(%s,2)'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line">            <tt class="py-keyword">exec</tt> <tt class="py-name">exeStr</tt> <tt class="py-keyword">in</tt> <tt class="py-name">__main__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
<a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-177" class="py-name"><a title="Priithon.fileDropPopup.NO_SPECIAL_GUI_EXCEPT
Priithon.py.shell.NO_SPECIAL_GUI_EXCEPT" class="py-name" href="#" onclick="return doclink('link-177', 'NO_SPECIAL_GUI_EXCEPT', 'link-1');">NO_SPECIAL_GUI_EXCEPT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L375"></a><tt class="py-lineno">375</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> </tt>
<a name="L376"></a><tt class="py-lineno">376</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line">            <tt id="link-178" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-178', 'e', 'link-100');">e</a></tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line">            <tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">MessageBox</tt><tt class="py-op">(</tt><tt class="py-string">"Error when loading txt file to %s: %s - %s"</tt> <tt class="py-op">%</tt>\ </tt>
<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line">                          <tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-179" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-179', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-180" class="py-name"><a title="Priithon.mandel.e
Priithon.plt.e
Priithon.plt.interface.e
Priithon.plt.plot_objects.e
Priithon.plt.plot_utility.e
Priithon.plt.wxplt.e" class="py-name" href="#" onclick="return doclink('link-180', 'e', 'link-100');">e</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line">                          <tt class="py-string">"Bad Varname  !?"</tt><tt class="py-op">,</tt> </tt>
<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line">                          <tt class="py-name">style</tt><tt class="py-op">=</tt><tt class="py-name">wx</tt><tt class="py-op">.</tt><tt class="py-name">ICON_ERROR</tt><tt class="py-op">)</tt> </tt>
<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L383"></a><tt class="py-lineno">383</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-181" class="py-name"><a title="Priithon.all" class="py-name" href="#" onclick="return doclink('link-181', 'all', 'link-80');">all</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">Y</tt> </tt>
<a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line">            <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt class="py-name">exeStr</tt> </tt>
<a name="L385"></a><tt class="py-lineno">385</tt>  <tt class="py-line">            <tt class="py-name">Y</tt><tt class="py-op">.</tt><tt id="link-182" class="py-name"><a title="Priithon.usefulX.shellMessage" class="py-name" href="#" onclick="return doclink('link-182', 'shellMessage', 'link-89');">shellMessage</a></tt><tt class="py-op">(</tt><tt class="py-string">"### %s\n"</tt><tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L386"></a><tt class="py-lineno">386</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pyshell</tt><tt class="py-op">.</tt><tt id="link-183" class="py-name"><a title="Priithon.py.shell.Shell.addHistory" class="py-name" href="#" onclick="return doclink('link-183', 'addHistory', 'link-82');">addHistory</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Nov 22 14:59:49 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
